Repository navigation
revert(studio): the bench's sealed press measure, which misreads a press waiting on a save - #8591
Merged
Merged
Conversation
Contributor
Edit accuracy: accurate 271 (base branch 271), smooth 46 of thoseThe gate passes. Quarantined, measured but not gated (0) |
jrusso1020
approved these changes
Nov 23, 2026
jrusso1020
left a comment
Collaborator
There was a problem hiding this comment.
Verdict: APPROVE. Need ✅ · Size ✅ (4 test files) · Reuse ✅ · Simpler ✅ · Structure ✅
Risk: low. The change is test-only and restores the bench's previous scoring.
What I checked at 5f13d1a3:
- Exact inverse of #8582. The +/- lines of this PR's diff hash the same as #8582's merge reversed (
2ce48f15→ its parent). All four files now match #8582's parent byte for byte, and no commit onmainhas touched them since. - No product code. Every changed file is under
packages/studio/tests/e2e/edit-accuracy/. The one later change to nearby code is #8568, which is product-side and does not use anything #8582 added. - Callers. Everything that calls the two reverted functions (
sample,measureShown) uses the pre-#8582 signatures, includingsequences.mjs. Nothing passes the removedpointerMovedargument. - CI. All required checks pass at this head. That includes
Studio: edit accuracy gate, the gate that went red after #8582. The two Windows test shards still running are not required.
— Rames (hf-review)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Reverts #8582. Its new press measure fails
seqheldtwice-tlhold-px-r0-root-z100on the edit-accuracy bench (press jump 312.3 px), which keeps the merge queue from landing other PRs.Why
#8582 made the bench read the element, not Studio's waiting box, at a press before the pointer moves. In that case the second resize is pressed while the first save is still in flight, so the press waits on a reload: the element sits at its old place until the replay and Studio's waiting box is what's shown. #8582 read the element there, 312 px from the box. Its claim that a press waiting on a reload was scored as before held only once the pointer moved, not at the press itself.
How
git revertof #8582's merge:case.mjs,teleport.mjsand their two test rows go back to the parent's. It re-lands separately, scoring a press by the element only while Studio isn't reloading or saving, with this case as its red row.Test plan
On a Linux machine: the bench's own tests in the two touched files pass three runs in a row, its 8 covering files pass, and
tsc, Fallow and pre-push are clean.seqheldtwice-tlhold-px-r0-root-z100on this head, four runs on a Linux machine: accurate in all four (tracking 0.08-0.40 px, teleport 0.15-0.35, drop and reload 0.34), where #8582 failed it every run with a 312.3 px press jump.No visible change
Test-only: the bench's scoring.